<td width="727"><table width="727" border="0" cellspacing="0" cellpadding="0">
                                <tr> 
                                  <td width="727" height="47" valign="top" background="img/bar_blue.jpg"><table width="727" border="0" cellspacing="0" cellpadding="0">
                                      <tr> 
                                        <td width="10" height="47">&nbsp;</td>
                                        <td width="23" height="47"><img src="img/bar_flblue.jpg" width="23" height="23"></td>
                                        <td width="10" height="47">&nbsp;</td>
                                        <td height="47" class="tahoma12W"><strong> 
                                          <?php echo $lang['CONTENT_TITLE_UPDATE_USER']; ?></strong></td>
                                      </tr>
                                    </table></td>
                                </tr>
                                <tr> 
                                  <td width="727" height="6" valign="top"><img src="img/spec_blank.gif" width="10" height="7"></td>
                                </tr>
                                <tr> 
                                  <td width="727" height="878" valign="top" bgcolor="#99CC33"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr> 
                                        <td height="601" valign="top" bgcolor="F1F3EB"><table width="100%" height="878" border="0" cellpadding="0" cellspacing="0">
                                            <tr> 
                                              <td height="763" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                  <tr> 
                                                    <td width="10" height="10"></td>
                                                    <td height="10"></td>
                                                    <td width="10" height="10"></td>
                                                  </tr>
                                                  <tr> 
                                                    <td width="10">&nbsp;</td>
                                                    <td align="left" valign="top" class="arial12G66">
															<?php
																
																if(isset($_POST['submit'])){
																	
																	if(empty($_POST['cpassword'])){
																		$errors[] = $lang['ERROR_PASSWORD_CURRENT'];
																	}
																	
																	if(empty($_POST['password'])){
																		$errors[] = $lang['ERROR_PASSWORD'];
																	}else{
																		if($_POST['password']!=$_POST['confirmpassword'])
																		{
																			$errors[] = $lang['ERROR_PASSWORD_NOTMATCH'];
																		}
																		
																	}
																	if(is_array($errors)){
																		echo '
																		<table width=500 align=center border=0 cellspacing=0 cellpadding=0>
																		<tr>
																			<td>
																		<div style="margin-bottom:10px;font-family: tahoma; font-size: 11px;">';
																		echo '<p style="padding:0px; margin:0px; color:red;"><b>'.$lang['CONTENT_ERROR_OCCUR'].'</b></p>';
																		while (list($key,$value) = each($errors))
																		{
																			echo '<span style="padding:10px;color:red;">'.$value.'</span><br />';
																		}
																		echo '</div> </td></tr></table>';
																	}else{
																		$cpassword = mysql_real_escape_string($_POST['cpassword']); 
																		$npassword = mysql_real_escape_string($_POST['password']); 
																		$Qs = "SELECT * from user where username = '$_SESSION[username]' and password=PASSWORD('$cpassword')";
																		$Qc= $db->sql_total($Qs);
																		if($Qc <> 0){
																			$password = mysql_real_escape_string($_POST['password']); 
																	    
																			$createUser= "UPDATE user SET password =PASSWORD('$npassword') where username='$_SESSION[username]'";
																			$result = $db->sql_query($createUser);
																			
																			if ($result){	
																				echo'
																					<table width=500 align=center border=0 cellspacing=0 cellpadding=0>
																						<tr>
																							<td><div style="font-weight:bold; font-size:14px; font-family:tahoma;">'.$lang['CONTENT_UPDATE_SUCCESS'].'</div>
																							</td>
																						</tr>
																					</table>
																					
																					';
																			}
																		}else{
																				echo '
																					<table width=500 align=center border=0 cellspacing=0 cellpadding=0>
																					<tr>
																						<td>
																					<div style="margin-bottom:10px;font-family: tahoma; font-size: 11px;">';
																					echo '<p style="padding:0px; margin:0px; color:red;"><b>'.$lang['CONTENT_ERROR_OCCUR'].'</b></p>';
																					
																					echo '<span style="padding:10px;color:red;">'.$lang['ERROR_PASSWORD_CURRENT_INSERT'].'</span><br />';
																					
																					echo '</div> </td></tr></table>';
																		}
																		
																	}
																		
																	}
																	
																	
																	$QUser = "SELECT * from user where username = '$_SESSION[username]'";
																	$QUcheck= $db->sql_total($QUser);
																	$QUresult = $db->sql_list($QUser);
																	if($QUcheck <> 0){
																		$_SESSION['name']   = $result['name'];
																		$_SESSION['notel']   = $result['notel'];
																	}
															
															?>
															
															<form action="" method="POST">	
																<table width="500" align="center" border="0" cellspacing="0" cellpadding="0">
																	
																	<tr>
																		<td colspan="3" style="height:5px"></td>
																	</tr>
																	<tr>
																		<td width="30%" class="tahoma11G"><?php echo $lang['FORM_PASSWORD_CURRENT']; ?></td>
																		<td width="5%"> : </td>
																		<td class="tahoma11G"><input type="password" name="cpassword" 
																			value="" size="35" ></td>
																	</tr>
																	<tr>
																		<td colspan="3" style="height:5px"></td>
																	</tr>
																	<tr>
																		<td width="30%" class="tahoma11G"><?php echo $lang['FORM_PASSWORD_NEW']; ?></td>
																		<td width="5%"> : </td>
																		<td class="tahoma11G"><input type="password" name="password" 
																			value="" size="35" ></td>
																	</tr>
																	<tr>
																		<td colspan="3" style="height:5px"></td>
																	</tr>
																	<tr>
																		<td width="30%" class="tahoma11G"><?php echo $lang['FORM_PASSWORD_NEW_REPEAT']; ?></td>
																		<td width="5%"> : </td>
																		<td class="tahoma11G"><input type="password" name="confirmpassword" 
																			value="" size="35" ></td>
																	</tr>
																	<tr>
																		<td colspan="3" style="height:5px"></td>
																	</tr>
																	<tr>
																		<td colspan="3" class="tahoma11G">
																			<button name="submit" type="submit" style="border: 0; background: transparent;float:right; margin-right:80px;
																				cursor:pointer;">
																			    <img src="img/btn_submit.jpg" width="53" height="22"  alt="submit" />
																			</button>
																		</td>
																	</tr>
																</table>
															</form>
															
															
                                                    </td>
                                                    <td width="10">&nbsp;</td>
                                                  </tr>
                                                  <tr> 
												  
                                                    <td width="10" height="10"></td>
                                                    <td height="10"></td>
                                                    <td width="10" height="10"></td>
                                                  </tr>
                                                </table></td>
												
                                            </tr>
                                            <tr> 
                                              <td height="115" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                  <tr valign="top"> 
                                                    <td width="115" height="115"><img src="img/spec_ornamentLeft.jpg" width="115" height="115"></td>
                                                    <td height="115">&nbsp;</td>
                                                    <td width="115" height="115"><img src="img/spec_ornamentRight.jpg" width="115" height="115"></td>
                                                  </tr>
                                                </table></td>
												
                                            </tr>
                                          </table></td>
                                      </tr>
                                    </table></td>
                                </tr>
                              </table>